#include<bits/stdc++.h>
using namespace std;
int n;
int x[100010];
int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    cin>>n;
    for(int i=1;i<=n;i++)
        cin>>x[i];
    sort(x+1,x+n+1);
    int ans=n;
    int j=1;
    for(int i=2;i<=n;i++)
    {
        if(x[i]>x[j])
        {
            ans--;
            j++;
        }
    }
    cout<<ans;
    return 0;
    fclose(stdin);
    fclose(stdout);
}
